package com.liudadan.mapper;

import com.liudadan.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface EmployeeMapper {
    /**
     * 根据员工id查询员工数据方法
     * @param empId  员工id
     * @return 员工实体对象
     */
    Employee selectEmployee(Integer empId);

    int deleteEmployeeById(Integer empId);

    //单个值
    Employee queryById(Integer empId);

    //多个简单类型
    int updateById(@Param("empId") Integer empId, @Param("empSalary") Double empSalary);

    //map
    int insert(Map data);

    //实体类
    int insertEmployee(Employee employee);
}